import Taro from '@tarojs/taro'
import { Provider } from 'react-redux'
import { Component } from 'react'
import configStore from './redux/store'
import './app.less'

const store = configStore()

class App extends Component {

  //   componentDidMount () {Taro.$store = store;Taro.cloud.init({
  //   env: 'cloud1-3gq0gx7hc551714d'
  // })}

  componentDidShow() { }

  componentDidHide() { }

  componentDidCatchError() { }

  // this.props.children 是将要会渲染的页面
  render() {
    return (
      <Provider store={store}>
        {this.props.children}
      </Provider>
    )
  }
}

export default App
